

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="adminmain" />
        <title>Email Report</title>
    </head>
    
    <body>


        <div class="body">
            <h1>Email Report</h1>
            
            <g:if test="${flash.message}">
            	<div class="message">${flash.message}</div>
            </g:if>
            
            <div class="list">
                <table>
                    <thead>
                        <tr>
                        
				<td>Id</td>

				<td>First Name</td>
				
				<td>Last Name</td>
				
				<td>Email</td>

				<td>Date</td>
                   	        
                        </tr>
                    </thead>
                    <tbody>
						<g:each in="${emailReportList}" status="i" var="item">
							<tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

								<td><g:link action="emailShow" id="${item.id}">${item.id?.encodeAsHTML()}</g:link></td>

								<td>${item.firstName?.encodeAsHTML()}</td>

								<td>${item.lastName?.encodeAsHTML()}</td>

								<td>${item.email?.encodeAsHTML()}</td>

								<td>${item.dateCreated?.encodeAsHTML()}</td>

							</tr>
						</g:each>
                    </tbody>
                </table>
            </div>
            

            
        </div>
    </body>
</html>
